package com.itheima.youdianda.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class SysRole implements Serializable {
    private static final long serialVersionUID = 1L;

    private String id;
    private String name;
    private String description;
    private LocalDateTime createDate;
    private LocalDateTime updateDate;
    private String remarks;
    private Character delFlag;
    private Integer superadmin;

//    @TableField(exist = false)
//    private List<SysRoleMenu> menuIds;

    @TableField(exist = false)
    private String role_id;
    @TableField(exist = false)
    private String role_menus;  //角色对应权限菜单id的字符串"128,130,140..."
    @TableField(exist = false)
    private List<String> menuids; //对应sys_role_menu表里menu_id集合[128,130...]
    @TableField(exist = false)
    private List<SysMenu> authList; //对应菜单权限整体


}
